package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.witchdraw.config.WitchDrawCombConfig;
import com.yanqu.road.entity.activity.witchdraw.config.WitchDrawItemConfig;
import com.yanqu.road.entity.activity.witchdraw.data.WitchDrawNoticeData;
import com.yanqu.road.entity.activity.witchdraw.data.WitchDrawUserData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class WitchDrawBusiness {
    public static List<WitchDrawNoticeData> getWitchDrawNoticeData(int activityId) {
        return DaoHelper.getWitchDrawNoticeDaoImpl().getWitchDrawNoticeData(activityId);
    }

    public static boolean addWitchDrawNoticeDataList(List<WitchDrawNoticeData> list) {
        return DaoHelper.getWitchDrawNoticeDaoImpl().addNoticeList(list);
    }

    public static Map<Integer, WitchDrawCombConfig> getWitchDrawCombConfigMap(int activityId) {
        return DaoHelper.getWitchDrawConfigDaoImpl().getWitchDrawCombConfigMap(activityId);
    }

    public static Map<Integer, WitchDrawItemConfig> getWitchDrawItemConfigMap(int activityId){
        return DaoHelper.getWitchDrawConfigDaoImpl().getWitchDrawItemConfigMap(activityId);
    }

    public static WitchDrawUserData getWitchDrawUserData(int activityId, long userId) {
        return DaoHelper.getWitchDrawUserDataDaoImpl().getWitchDrawUserData(activityId, userId);
    }

    public static boolean addWitchDrawUserData(WitchDrawUserData witchDrawUserData) {
        return DaoHelper.getWitchDrawUserDataDaoImpl().add(witchDrawUserData);
    }

    public static boolean updateWitchDrawUserData(WitchDrawUserData witchDrawUserData) {
        return DaoHelper.getWitchDrawUserDataDaoImpl().update(witchDrawUserData);
    }

}
